//
//  WYXNormalDuck.m
//  Design Patterns
//
//  Created by ying on 2016/12/10.
//  Copyright © 2016年 ying. All rights reserved.
//

#import "WYXNormalDuck.h"
#import "WYXFly.h"
#import "WYXQuack.h"

@implementation WYXNormalDuck

- (instancetype)init{
    self =  [super init];
    if (self) {
        // 利用多态 实例化相应对象
        self.flyBehavior = [[WYXFly alloc] init];
        self.quackBehavior = [[WYXQuack alloc] init];
    }
    return self;
}

@end
